package com.yc.bbs.service;


import lombok.Data;

@Data
public class BizException  extends Exception{

    private Object data;

    public BizException(String message, Object data) {
        super(message);
        this.data = data;
    }

    public BizException(String message, Throwable cause, Object data) {
        super(message, cause);
        this.data = data;
    }
}
